package com.pc.tas.region;

import java.util.List;

public class RegionService {
	private RegionMapper rm;
	
	public void insert(Region region) {
		rm.insert(region);
	}
	
	public void update(Region region){
		rm.update(region);
	}
	
	public void delete(String id){
		rm.delete(id);
	}
	
	public Region getById(String id) {
		return rm.getById(id);
	}
	
	public List<Region> getByParentId(String parentId) {
		return rm.getByParentId(parentId);
	}
	
	public void setRm(RegionMapper rm) {
		this.rm = rm;
	}
}
